import redis

# 测试 Redis
if __name__ == '__main__':
    r = redis.Redis(host='192.168.1.251', port=6379, db=3, password='admin')
    r.set('rank', 'Commander')
    r.set('rank', 'Captain')